package com.example.logic.chapter5.demo1;

/**
 * @Date 2023-05-02
 * @Author Jonathan
 */
public class Base extends AbstractAdder {

    private static final int MAX_NUM = 1000;
    private final int[] arr = new int[MAX_NUM];

    private int count;

    @Override
    public void add(int number) {
        if (count < MAX_NUM) {
            arr[count++] = number;
        }
    }


}
